package com.letoken.platform.repo.app.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 阿拉丁神灯配置表
 * </p>
 *
 * @author 作者
 * @since 2024-01-23
 */
@Getter
@Setter
@TableName("admin_lamp_config")
@ApiModel(value = "AdminLampConfig对象", description = "阿拉丁神灯配置表")
public class AdminLampConfig extends Model<AdminLampConfig> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("升级条件(团队)")
    @TableField("amout_team")
    private BigDecimal amoutTeam;

    @ApiModelProperty("可获取的灯油")
    @TableField("lamp")
    private BigDecimal lamp;

    @ApiModelProperty("可获得capa算力  直推业绩条件")
    @TableField("amout_push")
    private BigDecimal amoutPush;

    @TableField("create_time")
    private LocalDateTime createTime;

    @ApiModelProperty("可获取灯油数量一定比例的算力")
    @TableField("capa_rate")
    private BigDecimal capaRate;

    @ApiModelProperty("收益率")
    @TableField("income_rate")
    private BigDecimal incomeRate;


    @Override
    public Serializable pkVal() {
        return this.id;
    }

}
